<?php
namespace app\common\model;
use think\model\concern\SoftDelete;

class CpBranch extends TyModel {

    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;

    //完成状态
    public function getStatusNameAttr($value,$data){
        $status = [0 => '未完成',1 => '已完成'];
        return $status[$data['status']];
    }
}